/**
 * @description 获取用户基本信息
 * @author wenjiahui
 * 2023-10-08
 */

import { CommonDataProps } from "@/store/reducers/data/type";
import { useSelector } from "react-redux";

/**
 * @description 获取用户信息，包括token,lg_ic
 * @author wenjiahui
 * 2023-10-20
 */

export default function useGetUserInfo() {
  const { userInfo, token, lg_ic } = useSelector((state: any) => state.commonData) as CommonDataProps;
  return { ...userInfo, token, lg_ic };
}
